<?php
namespace app\common\model;

class SQL
{
    private $where;

    function __construct()
    {
        $this->where = array();
    }

    public function whereIf($if, $key, &$value)
    {
        if ($if) {
            $this->where[$key] = $value;
        }
        return $this;
    }

    public function get(){
        return $this->where;
    }
}
